package cesdentalrecord.dao.controller;

import java.util.ArrayList;

import cesdentalrecord.dao.InitialHealthCond;
import cesdentalrecord.dao.Student;

public class AddInitialConditionController {

	public AddInitialConditionController(){}
	
	public boolean validateInitialConditionEntries(int studentID, String dateOfExam, boolean dentalCaries,
			boolean gingivitis, boolean debris, boolean calculus, boolean abnormalGrowth,
			boolean cleftLip, boolean other){
		try{
			Student s = new Student();
			s.addInitialCondition(studentID, dateOfExam, dentalCaries, gingivitis, calculus, debris, abnormalGrowth, cleftLip, other);
			return true;
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}
	}
	public ArrayList<InitialHealthCond> validateRetrievalOfInitialConditionEntries(int studentID){
		try{
			InitialHealthCond ihc = new InitialHealthCond();
			return ihc.retrieveInitialCondition(studentID);
		}catch(Exception e){
			e.printStackTrace();
			return null;
		}
	
	}
}
